package com.matt.domain.media;

import com.matt.commons.model.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "rs_media")
@Data
@EqualsAndHashCode(callSuper = true)
public class Media extends Model {
	@Column(columnDefinition = "varchar(100) COMMENT '文章标题'")
	private String resURL;

	@Column(columnDefinition = "int default 0   COMMENT '资源类型， 0. 其他    1.图片   2.视频'")
	private Integer resType;

	@Column(columnDefinition = "varchar(32) COMMENT '文章标题'")
	private String objId;

	@Column(columnDefinition = "int default 0   COMMENT '对象类型  0. feed  1.'")
	private Integer objType;
}
